<?php 
include_once(''.P.'/public/header.html');
?>


<script>
var typeabc = '<?=$type?>';
function initbody(){
	
}
function save(o1){
	var da = js.getformdata();
	da.type = '<?=$type?>';
	da.device = device;
	js.setmsg('保存中...');
	o1.disabled=true;
	js.ajax({
		type:'post',
		url:'?m=grcog&a=savecheck',
		data:da,
		success:function(res){
			o1.disabled=false;
			if(res=='ok'){
				js.setmsg('保存成功','green');
			}else{
				js.setmsg(res);
			}
		}
	});
}


</script>
<style>
.caidan{padding:10px;text-align:left;border-bottom:1px #eeeeee solid;cursor:pointer}
.caidan:hover{background-color:rgba(0,0,0,0.05)}
.caidan.active{background-color:rgba(0,0,0,0.06)}
</style>
</head>

<body>

<?php 
include_once(''.P.'/public/top.html');
?>

<div align="center">

<div style="width:<?=$maxwidth?>;margin:20px 0px" align="left">
	<div style="color:#cccccc">
		<a href="<?=URL?>" class="zhu">首页</a> &gt;
		<a href="" class="zhu">个人设置</a>
	</div>
	
	<div class="mainbody">
	
	<table width="100%">
	<tr valign="top">
	<td style="background:#f9f9f9;min-height:500px;border-right:1px #f1f1f1 solid">
	<div style="width:180px;min-height:500px;">
		
		<div class="caidan<?php if(isempt($type))echo ' active';?>">◇ <a href="?m=grcog">我的信息</a></div>
		
	
		
	</div>
	</td>
	
	<td width="90%">
	
	<?php if(isempt($type)){?>
	<div style="padding:30px 30px">
		<form name="myform">
		<table>
		
		<tr>
			<td align="right" style="color:gray">头像：</td>
			<td>
			<img src="<?=getface($adminrs['face'],'images/noface.png')?>" onclick="js.viewimg(this)" id="logoshow_img" style="border-radius:50%" width="80px" height="80px"><br>
			<input style="width:230px" name="logo" type="hidden" autocomplete="off" id="logoshow" placeholder="可以直接写路径" class="input" value="<?=$adminrs['face']?>">
			<button type="button" class="webbtn webbtn-mini" onclick="js.updateface('头像','logoshow');">修改头像</button>
			
			</td>
		</tr>
		<tr><td height="10"></td></tr>
	
		
	
		
		<tr><td align="right" style="color:gray">姓名：</td><td><?=$adminrs['name']?></td></tr>
		<tr><td height="10"></td></tr>
		
		<tr><td align="right" style="color:gray">用户名：</td><td><?=$adminrs['user']?></td></tr>
		<tr><td height="10"></td></tr>
		
		<tr><td align="right" style="color:gray">所在部门：</td><td><?=$adminrs['deptname']?></td></tr>
		<tr><td height="10"></td></tr>
		
		<tr><td align="right" style="color:gray">职位：</td><td><?=$adminrs['ranking']?></td></tr>
		<tr><td height="10"></td></tr>
		
		<tr><td align="right" style="color:gray">手机号：</td><td><?=$xhrock->yinchang($adminrs['mobile'])?></td></tr>
		<tr><td height="10"></td></tr>
		
		<tr><td align="right" style="color:gray">邮箱：</td><td><?=$adminrs['email']?></td></tr>
		<tr><td height="10"></td></tr>
		
		<tr><td align="right"></td><td>
		<button type="button" onClick="save(this)" style="padding:8px 20px;border-radius:5px" class="webbtn" >保存</button>&nbsp;<span id="msgview"></span>
		</td></tr>
		
		</table>
		
		</form>
	
	</div>
	<?php }?>
	

	<?php if($type=='chang'){?>
	
	
	
	<?php }?>
	
	
	</td>
	</tr>	
	</table>


	</div>
</div>



<?php 
echo $xhrock->filejsbase();
include_once(''.P.'/public/footer.html');
?>
</div>

</body>
</html>